import { app } from "electron";
import CodeMain from "./main/index";

// 当electron完成初始化并准备创建window对象时
app.on("ready", () => {

  const main = new CodeMain();
  main.main();

});

// 当所有窗口关闭时
app.on("window-all-closed", () => {
  if (process.platform !== "darwin") {
    app.quit();
  }
});

// TODO：在这里可以处理指定主进程的代码